<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      librsvg-2.48.2
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libraw.html" title="libraw-0.19.5">Prev</a>
          <p>
            libraw-0.19.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libtiff.html" title="LibTIFF-4.1.0">Next</a>
          <p>
            LibTIFF-4.1.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="librsvg" name="librsvg"></a>librsvg-2.48.2
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to librsvg
        </h2>
        <p>
          The <span class="application">librsvg</span> package contains a
          library and tools used to manipulate, convert and view Scalable
          Vector Graphic (SVG) images.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://ftp.gnome.org/pub/gnome/sources/librsvg/2.48/librsvg-2.48.2.tar.xz">
                http://ftp.gnome.org/pub/gnome/sources/librsvg/2.48/librsvg-2.48.2.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnome.org/pub/gnome/sources/librsvg/2.48/librsvg-2.48.2.tar.xz">
                ftp://ftp.gnome.org/pub/gnome/sources/librsvg/2.48/librsvg-2.48.2.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: ac9b8fb69ae4b6d79a19bebafac4a280
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 13 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 1.2 GB (83 MB installed), add
                642 MB for tests
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 1.9 SBU (on a 4-core machine), add 0.7
                SBU for tests
              </p>
            </li>
          </ul>
        </div>
        <h3>
          librsvg Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../x/gdk-pixbuf.html" title=
          "gdk-pixbuf-2.40.0">gdk-pixbuf-2.40.0</a>, <a class="xref" href=
          "../x/cairo.html" title=
          "Cairo-1.17.2+f93fc72c03e">Cairo-1.17.2+f93fc72c03e</a>, <a class=
          "xref" href="../x/pango.html" title=
          "Pango-1.44.7">Pango-1.44.7</a>, and <a class="xref" href=
          "rust.html" title="Rustc-1.42.0">rustc-1.42.0</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="gobject-introspection.html" title=
          "gobject-introspection-1.64.0">gobject-introspection-1.64.0</a> and
          <a class="xref" href="vala.html" title=
          "Vala-0.48.2">Vala-0.48.2</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="gtk-doc.html" title=
          "GTK-Doc-1.32">GTK-Doc-1.32</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/librsvg">http://wiki.linuxfromscratch.org/blfs/wiki/librsvg</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of librsvg
        </h2>
        <p>
          Install <span class="application">librsvg</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr    \
            --enable-vala    \
            --disable-static &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>. Many of the tests in 'reftests' may fail (45
          failed in March 2020) because they produce, and then diff, graphic
          files with text and the details such as spacing vary when the
          system versions of cairo, freetype, pixman, pango and perhaps
          harfbuzz differ from the versions on the system where the reference
          files were created.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            If you installed the package on to your system using a
            <span class="quote">&ldquo;<span class=
            "quote">DESTDIR</span>&rdquo;</span> method, an important file
            was not installed and should be copied and/or generated. Generate
            it using the following command as the <code class=
            "systemitem">root</code> user:
          </p>
          <pre class="root">
<kbd class="command">gdk-pixbuf-query-loaders --update-cache</kbd>
</pre>
        </div>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--enable-vala</code></em>: This switch
          enables building of the Vala bindings. Remove this switch if you
          don't have <a class="xref" href="vala.html" title=
          "Vala-0.48.2">Vala-0.48.2</a> installed.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <code class="option">--disable-introspection</code>: Use this
          switch if you have not installed <span class="application">Gobject
          Introspection</span>.
        </p>
        <p>
          <code class="option">--enable-gtk-doc</code>: Use this parameter if
          <span class="application">GTK-Doc</span> is installed and you wish
          to rebuild and install the API documentation.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">rsvg-convert</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">librsvg-2.so and
              libpixbufloader-svg.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/librsvg-2.0,
              /usr/share/doc/librsvg, and
              /usr/share/gtk-doc/html/rsvg-2.0</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="rsvg-convert" name="rsvg-convert"></a><span class=
                    "term"><span class=
                    "command"><strong>rsvg-convert</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to convert images into PNG, PDF, PS, SVG and
                    other formats.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="librsvg-2" name="librsvg-2"></a><span class=
                    "term"><code class="filename">librsvg-2.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides the functions to render Scalable Vector
                    Graphics.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libpixbufloader-svg" name=
                    "libpixbufloader-svg"></a><span class="term"><code class=
                    "filename">libpixbufloader-svg.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the <span class="application">Gdk Pixbuf</span> plugin
                    that allows <span class="application">GTK+</span>
                    applications to render Scalable Vector Graphics images.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-04-01 19:06:56 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libraw.html" title="libraw-0.19.5">Prev</a>
          <p>
            libraw-0.19.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libtiff.html" title="LibTIFF-4.1.0">Next</a>
          <p>
            LibTIFF-4.1.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
